package com.ruoyi.business.service;

import java.util.List;
import com.ruoyi.business.domain.RepairReservation;

/**
 * 维修预约Service接口
 * 
 * @author xjl
 * @date 2024-09-11
 */
public interface IRepairReservationService 
{
    /**
     * 查询维修预约
     * 
     * @param id 维修预约主键
     * @return 维修预约
     */
    public RepairReservation selectRepairReservationById(Long id);

    /**
     * 查询维修预约列表
     * 
     * @param repairReservation 维修预约
     * @return 维修预约集合
     */
    public List<RepairReservation> selectRepairReservationList(RepairReservation repairReservation);

    /**
     * 新增维修预约
     * 
     * @param repairReservation 维修预约
     * @return 结果
     */
    public int insertRepairReservation(RepairReservation repairReservation);

    /**
     * 修改维修预约
     * 
     * @param repairReservation 维修预约
     * @return 结果
     */
    public int updateRepairReservation(RepairReservation repairReservation);

    /**
     * 批量删除维修预约
     * 
     * @param ids 需要删除的维修预约主键集合
     * @return 结果
     */
    public int deleteRepairReservationByIds(Long[] ids);

    /**
     * 删除维修预约信息
     * 
     * @param id 维修预约主键
     * @return 结果
     */
    public int deleteRepairReservationById(Long id);

    /*根据维修状态和维修方式查询维修任务列表*/

       public List<RepairReservation> getRepairTasksByStatusAndMethod(Long status, String type);

/*根据单号查维修任务详情*/
    public RepairReservation getRepairTaskByOrderNumber(Long id);

    /*修改当前详情页的订单的状态为进行中*/
    public int updateRepairStatusById(RepairReservation repairReservation);

    /*修改当前详情页的订单的状态为已完成*/
    public int updateStatusById(RepairReservation repairReservation);
}
